<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2D移动</title>

    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        img {
            border-radius: 50%;
            border: 2px skyblue solid;
            display: block;
            margin: 100px auto;
            width: 500px;
            height: 300px;
            transition: all .5s ease;
        }
        
        img:hover {
            /* 移动 */
            /* transform: translateY(-50px); */
            /* 旋转 */
            transform: rotate(180deg) translate(100px, 100px) scale(1.2);
        }
        
        .box {
            position: relative;
            margin: 10px auto;
            width: 400px;
            height: 50px;
            background-color: antiquewhite;
        }
        
        .box::after {
            position: absolute;
            content: "";
            width: 20px;
            height: 20px;
            right: 10px;
            top: 13px;
            border-bottom: 2px solid black;
            border-left: 2px solid black;
            transform: rotate(315deg);
            transition: all 0.5s ease;
        }
        
        .box:hover::after {
            transform: rotate(495deg);
        }
    </style>

</head>

<body>
    <div>
        <img src="img/7f2a07a215964b19ed2244df5c00bbf163683e1c.jpg">

    </div>



    <div class="box">

    </div>

</body>

</html>